package com.xiaocz.hblsubstitutedriving.utils;


import android.util.Log;

import com.amap.api.track.ErrorCode;
import com.amap.api.track.OnTrackLifecycleListener;

public class SimpleOnTrackLifecycleListener implements OnTrackLifecycleListener {
    private static final String TAG = "OrderCourseActivity";
    @Override
    public void onBindServiceCallback(int status, String msg) {
        Log.w(TAG, "onBindServiceCallback, status: " + status + ", msg: " + msg);
    }

    @Override
    public void onStartTrackCallback(int status, String msg){
        Log.w(TAG, "error onStartTrackCallback, status: " + status + ", msg: " + msg);
    }

    @Override
    public void onStopTrackCallback(int status, String msg) {
        if (status == ErrorCode.TrackListen.STOP_TRACK_SUCCE) {// 成功停止
        } else {
            Log.w(TAG, "error onStopTrackCallback, status: " + status + ", msg: " + msg);

        }
    }

    @Override
    public void onStartGatherCallback(int status, String msg) {
        Log.w(TAG, "error onStartGatherCallback, status: " + status + ", msg: " + msg);
    }

    @Override
    public void onStopGatherCallback(int status, String msg) {
        if (status == ErrorCode.TrackListen.STOP_GATHER_SUCCE) {
            Log.w(TAG, "定位采集停止成功");
        } else {
            Log.w(TAG, "error onStopGatherCallback, status: " + status + ", msg: " + msg);
        }
    }
}
